extends ../../layout
block content
    
    .container
        .panel.panel-default
            .panel-body
                h1(style="margin:10px 0") 我的客户端 #{clients.length}
                a.btn.btn-primary(href="/oauth/client/create") 创建客户端
                .row
                    .col-md-12
                        table.table.table-hover
                            thead
                                tr
                                    th 选取
                                    th 客户端名称
                                    th 客户端ID
                                    th 客户端秘钥
                                    th 跳转地址
                                    th 操作
                            tbody
                                each client in clients
                                    tr
                                        td 
                                            input(type="checkbox", name="")
                                        td #{client.name}
                                        td #{client.id}
                                        td *********
                                        td #{client.redirect_uri}
                                        td
                                            a.btn.btn-xs.btn-default.margin-5(href="/oauth/client/" + client.id) 详细
                                            a.btn.btn-xs.btn-default.margin-5(href="/oauth/client/" + client.id +"/edit") 编辑
                                            a.btn.btn-xs.btn-warning.margin-5(href="/oauth/client/" + client.id +"/destroy") 删除